home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / LetLoveEnergy.swf / scripts / frame_751 / PlaceObject2_217_8 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-05  |  527 b   |  23 lines

  1. onClipEvent(enterFrame){
  2.    if(_name ne "floor" && alive && _root.man0.active)
  3.    {
  4.       currentx = Internal_X + _root.man0.offsetX;
  5.       currenty = Internal_Y + _root.man0.offsetY;
  6.       if(currentx < 1000 && -500 < currentx && -100 < currenty && currenty < 400)
  7.       {
  8.          onscreen = true;
  9.       }
  10.       else
  11.       {
  12.          onscreen = false;
  13.          _visible = false;
  14.       }
  15.       if(onscreen)
  16.       {
  17.          _visible = true;
  18.          _X = currentx;
  19.          _Y = currenty;
  20.       }
  21.    }
  22. }
  23.